package com.yogurt.edu.service;

import com.yogurt.edu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yogurt.edu.entity.chapter.ChapterVideoVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author yogurt
 * @since 2020-07-10
 */
public interface ChapterService extends IService<Chapter> {
    //根据课程id查询所有的章节和小节
    List<ChapterVideoVo> findChapterAndVideoByCourseId(String courseId);
    //根据章节id删除章节
    boolean deleteById(String chapterId);
    //根据课程id删除章节
    void deleteChapterByCourseId(String courseId);
}
